﻿using Microsoft.AspNetCore.Mvc;
using NSwag.Annotations;
using System;
using XBLMS.Configuration;
using XBLMS.Repositories;

namespace XBLMS.Web.Controllers.Admin
{
    [OpenApiIgnore]
  [Route(Constants.ApiAdminPrefix)]
  public partial class ErrorController : ControllerBase
  {
    public const string Route = "error";

    private readonly IErrorLogRepository _errorLogRepository;

    public ErrorController(IErrorLogRepository errorLogRepository)
    {
      _errorLogRepository = errorLogRepository;
    }

    public class GetResult
    {
      public string Message { get; set; }
      public string StackTrace { get; set; }
      public string Summary { get; set; }
      public DateTime? CreatedDate { get; set; }
    }
  }
}
